package com.explorex.infra.puma.gateway.netty.example;


import com.explorex.infra.puma.gateway.netty.ws.DefaultWebSocketEvent;
import com.explorex.infra.puma.gateway.netty.ws.WebSocketServer;

/**
 * @author: JacceYang
 * @createTime: 2022/07/14 8:22 下午
 * @description: WebSocket 本地启动服务类
 */
public class WebSocketServerExample {

    public static void main(String[] args) {
        WebSocketServer server = new WebSocketServer();
        server.setCheckHeartbeat(true);
        server.setWebSocketPath("/longlink");
        server.setWebSocketEvent(new DefaultWebSocketEvent());
        server.bind(5444);
    }

}
